google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-24',25801399,null,null,null,null], ['2024-02-25',25801399,null,null,null,null], ['2024-02-26',25801557,null,null,null,null], ['2024-02-27',25801744,null,null,null,null], ['2024-02-28',25802022,null,null,null,null], ['2024-02-29',25802022,null,null,null,null], ['2024-03-01',25802189,null,null,null,null], ['2024-03-02',25802467,null,null,null,null], ['2024-03-03',25802598,null,null,null,null], ['2024-03-04',25802598,null,null,null,null], ['2024-03-05',25802780,null,null,null,null], ['2024-03-06',25802908,null,null,null,null], ['2024-03-07',25803071,null,null,null,null], ['2024-03-08',25803188,null,null,null,null], ['2024-03-09',25803352,null,null,null,null], ['2024-03-10',25803472,null,null,null,null], ['2024-03-11',25803604,null,null,null,null], ['2024-03-12',25803720,null,null,null,null], ['2024-03-13',25803823,null,null,null,null], ['2024-03-14',25803890,null,null,null,null], ['2024-03-15',25803890,null,null,null,null], ['2024-03-16',25804114,null,null,null,null], ['2024-03-17',25804175,null,null,null,null], ['2024-03-18',25804414,null,null,null,null], ['2024-03-19',25804512,null,null,null,null], ['2024-03-20',25804647,null,null,null,null], ['2024-03-21',25804789,null,null,null,null], ['2024-03-22',25804789,null,null,null,null], ['2024-03-23',25804909,null,null,null,null], ['2024-03-24',25805007,null,null,null,null], ['2024-03-25',25805154,null,null,null,null], ['2024-03-26',25805325,null,null,null,null], ['2024-03-27',25805325,null,null,null,null], ['2024-03-28',25805632,null,null,null,null], ['2024-03-29',25805768,null,null,null,null], ['2024-03-30',25805768,null,null,null,null], ['2024-03-31',25805768,null,null,null,null], ['2024-04-01',25805768,null,null,null,null], ['2024-04-02',25805768,null,null,null,null], ['2024-04-03',25805768,null,null,null,null], ['2024-04-04',25806521,null,null,null,null], ['2024-04-05',25806616,null,null,null,null], ['2024-04-06',25806875,null,null,null,null], ['2024-04-07',25806996,null,null,null,null], ['2024-04-08',25807125,null,null,null,null], ['2024-04-09',25807216,null,null,null,null], ['2024-04-10',25807323,null,null,null,null], ['2024-04-11',25807323,null,null,null,null], ['2024-04-12',25807434,null,null,null,null], ['2024-04-13',25807535,null,null,null,null], ['2024-04-14',25807648,null,null,null,null], ['2024-04-15',25807780,null,null,null,null], ['2024-04-16',25807882,null,null,null,null], ['2024-04-17',25807970,null,null,null,null], ['2024-04-18',25808089,null,null,null,null], ['2024-04-19',25808193,null,null,null,null], ['2024-04-20',25808323,null,null,null,null], ['2024-04-21',25808438,null,null,null,null], ['2024-04-22',25808574,null,null,null,null], ['2024-04-23',25808711,null,null,null,null], ['2024-04-24',25808840,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });